var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", { value: !0 }), (o.EPlatform = void 0);
var a = e("Base64"),
    n = e("MiniGameSDK"),
    i = e("AdCenter"),
    r = e("LoadRes");
(function (e) {
    (e[(e.NO_AD = 0)] = "NO_AD"),
        (e[(e.VIVO = 1)] = "VIVO"),
        (e[(e.OPPO = 2)] = "OPPO"),
        (e[(e.TikTok = 3)] = "TikTok"),
        (e[(e.KWAI_GAME = 4)] = "KWAI_GAME"),
        (e[(e.UC = 5)] = "UC"),
        (e[(e.BOX_4399 = 6)] = "BOX_4399"),
        (e[(e.NET_4399 = 7)] = "NET_4399"),
        (e[(e.WX = 8)] = "WX"),
        (e[(e.Two_ANDROID = 9)] = "Two_ANDROID"),
        (e[(e.VIVO_ANDROID = 10)] = "VIVO_ANDROID");
})(o.EPlatform || (o.EPlatform = {}));
var s = (function () {
    function e() { }
    return (
        Object.defineProperty(e, "platform", {
            get: function () {
                return this._platform;
            },
            set: function (e) {
                this._platform = e;
            },
            enumerable: !1,
            configurable: !0
        }),
        (e.stringHasSpace = function (e) {
            return null == e || -1 != e.indexOf(" ");
        }),
        (e.getAdConfig = function () {
            return;
            console.log("======getAdConfig=======");
            var t = "https://test2-1258404770.file.myqcloud.com/ad-config/";
            (t += e.channelType),
                (t += "/"),
                (t += e.GameName),
                (t += ".json"),
                (t += "?t=" + Date.now()),
                console.log("====sdkConfig===", t),
                r.default.loadResJsonInfo(
                    t,
                    function (e) {
                        var t = new a.default();
                        t.Base64();
                        var o = e.json.json,
                            n = JSON.parse(t.decode(o));
                        (i.default.getInstance().adConfig = n), i.default.getInstance().startLoadAd();
                    },
                    function () {
                        (cc.sys.platform !== cc.sys.VIVO_GAME && cc.sys.platform !== cc.sys.OPPO_GAME) ||
                            n.default.showDialog("提示", "游戏配置获取错误\n请稍后再试", function () {
                                n.default.exitApplication();
                            });
                    }
                );
        }),
        (e.channelType = ""),
        (e.GameName = "王者VS联盟"),
        (e.channer_info = [
            "test",
            "vivo",
            "oppo",
            "tiktok",
            "kuai_shou",
            "UC",
            "4399_box",
            "4399_net",
            "wx",
            "233_android",
            "vivo_android"
        ]),
        e
    );
})();
o.default = s;
